###################### 部署前端H5页面到服务器 ##########################
# 部署h5
sftp xxl.blue
put -r D:/files/golangProject/shop/shop-ui/unpackage/dist/build/h5  /usr/share/nginx/html/shop-ui
exit

# 连接ssh, 关闭之前的nginx，重启nginxL
ssh xxl.blue
kill $(cat /run/nginx.pid)
sleep 0.5
nginx
echo "http://xxl.blue/shop-ui"
exit
